<?php
/**
 * Created by PhpStorm
 * User: 龍zero
 * Date: 2022-05-16
 * Time: 14:18
 */
declare(strict_types=1);

namespace App\Request\System;

use Hyperf\Validation\Request\FormRequest;
class SystemRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'site_name' => 'max:20',
            'hot_line' => 'max:20',
            'email' => 'email',
            'describe' => 'max:50',
            'qrcode_img_id' => 'integer',
        ];
    }
}